import request from '@/utils/request'

//通过考试记录Id获取考试试题-批改
export function getExamPaperForGradeApi(examPaperId,params) {
  return request({
    url: `/exam/stu/getExamPaperForGrade/${examPaperId}`,
    method: 'get',
    params:params
  })
}
//获取下一份考试试卷-组间互评
export function getNextExamPaperForGroupApi(examPaperId,params) {
  return request({
    url: `/exam/teacher/grade/getNextExamPaperForGroup/${examPaperId}`,
    method: 'get',
    params:params
  })
}

//获取下一份考试试卷-师评
export function getNextExamPaperApi(examPaperId,params) {
  return request({
    url: `/exam/teacher/grade/getNextExamPaper/${examPaperId}`,
    method: 'get',
    params:params
  })
}
//批改试卷
export function approvalAnswerApi(data) {
  return request({
    url: `/exam/teacher/grade/gradeExamPaperTopic`,
    method: 'post',
    data:data
  })
}
//通过考试记录Id获取小组成员名单
export function getGroupMemberListApi(examPaperId) {
  return request({
    url: `/exam/teacher/grade/getGroupMemberList/${examPaperId}`,
    method: 'get',
  })
}
//退回试卷
export function returnExamPaperApi(examPaperId) {
  return request({
    url: `/exam/teacher/grade/returnExamPaper/${examPaperId}`,
    method: 'post'
  })
}
